﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using wrsm.common.entity;

namespace wrsm.common {

    /// <summary>
    /// Entity Transformer, 
    /// used to serialize wrsm entities
    /// </summary>
    [CLSCompliant(true)]
    public interface IEntityTransformer {

        /// <summary>
        /// Save Entities, or information related to entities for later use
        /// </summary>
        /// <param name="entities">Entities to save</param>
        void TransformOut(IEnumerable<Entity> entities);

        /// <summary>
        /// Load Entities from saved state
        /// </summary>
        /// <returns>Entities restored</returns>
        IEnumerable<Entity> TransformIn();

    }
}
